package cn.com.header.web.mapper.sys;

import cn.com.header.web.model.sys.Authority;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 资源dao
 */
public interface AuthorityDAO {

    List<Authority> selectAuthorityByRoleId(@Param("roleId") Long roleId);

    List<Authority> getFirstAuth(@Param("userId") Long userId);

    List<Authority> getChildList(@Param("parentId")Long parentId);

    List<Authority> getAllFirstAuth();

    List<Authority> queryForParentId(Long parentId);

}